/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmc.rra.tests;

import com.cmc.rra.service.AppUserService;
import com.cmc.rra.service.impl.AppUserServiceImpl;
import com.cmc.rra.sub.AppUser;
import java.util.List;

/**
 *
 * @author CMC
 */
public class AppUserTest {
    
    public static void main(String args[]){
    
        /*AppUser appUser = new AppUserImpl();
        appUser.setUserName("admin");
        appUser.setPassword("admin");
        appUser.setType("admin");
        appUser.setCreatedBy(1L);
        appUser.setCreatedOn(new java.util.Date());
        appUser.setModifiedBy(1L);
        appUser.setModifiedOn(new  java.util.Date());
        appUser.setActive(Short.parseShort("1"));*/
        
        AppUserService appUserService = new AppUserServiceImpl();
        //appUserService.create(appUser);
        
        //AppUser appUser = appUserService.authenticate("admin", "admin");
        //List<AppUser> appUserList = appUserService.getAll();
        //System.out.println(appUserList.size());
        AppUser appUser = appUserService.findByGuid("9988ab11-1e4a-463b-bb22-ff5c8440e3b3");
        System.out.println(appUser);
        
    }    
    
}
